package org.example;
import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration //代表他是一个配置类将,替换applicationContext.xml
@ComponentScan("org.example") //在配置类上添加包扫描注解
@PropertySource("classpath:jdbc.properties")
@Import({JdbcConfig.class, MybatisConfig.class})
//开启注解式事务驱动
@EnableTransactionManagement
@EnableAspectJAutoProxy
public class SpringConfig {
}